/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package {
import flash.display.MovieClip; public class Test extends MovieClip {}
}

import com.adobe.test.Assert;
 
// var SECTION = ".toString Radix";
// var VERSION = "";


Assert.expectEq("(0).toString(16)",
        "0",
        (0).toString(16));

Assert.expectEq("Math.PI.toString(16)",
        "3",
        Math.PI.toString(16));

Assert.expectEq("Number.MIN_VALUE.toString(16)",
        "0",
        Number.MIN_VALUE.toString(16));

Assert.expectEq("Number.MAX_VALUE.toString(16)",
        "fffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        Number.MAX_VALUE.toString(16));
        
Assert.expectEq("(65535).toString(16)",
        "ffff",
        (65535).toString(16));
        
Assert.expectEq("(1e100).toString(16)",
        "1249ad2594c37d0000000000000000000000000000000000000000000000000000000000000000000000",
        (1e100).toString(16));
        
Assert.expectEq("(1e307).toString(2)",
        "111000111101100011111001111001010110001110100001100110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        (1e307).toString(2));
                
Assert.expectEq("(-65535).toString(16)",
        "-ffff",
        (-65535).toString(16));
                
Assert.expectEq("(-1e100).toString(16)",
        "-1249ad2594c37d0000000000000000000000000000000000000000000000000000000000000000000000",
        (-1e100).toString(16));
                
Assert.expectEq("(-1e307).toString(2)",
        "-111000111101100011111001111001010110001110100001100110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        (-1e307).toString(2));
                
Assert.expectEq("Infinity.toString(5)",
        "Infinity",
        Infinity.toString(5));
                
Assert.expectEq("(1e117).toString(2)",
        "11001011000010010000110010000000000000011010101101011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        (1e117).toString(2));
                
Assert.expectEq("(-1e117).toString(2)",
        "-11001011000010010000110010000000000000011010101101011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        (-1e117).toString(2));



